package com.deft.design.decotator;

/**
 * @author Hide丶love
 * @date 2022/05/01
 **/
public class SsoInterceptor implements HandlerInterceptor {
    @Override
    public boolean preHandle(String request, String response, Object handler) {
        String ticket = request.substring(1, 8);
        return "success".equals(ticket);
    }
}
